package vip.xiaonuo.hontu.issued.constant;

import java.util.HashMap;
import java.util.Map;

public class HTConstant {

    public static final String IMAGE_PX = "data:image/jpeg;base64,";
    /**
     * 入库质量检测
     */
    public static final String qualityJudge = "/v1/api/misc/file/qualityJudge";

    /**
     * 101082 图片大小超过10MB
     * 101066 图片格式或名称错误
     * 101050 模糊度不通过
     * 101052 垂直角度不通过
     * 101053 水平角度不通过
     * 101054 旋转角度不通过
     * 101055 亮度不通过
     * 101056 标准差亮度不通过
     * 101051 人脸大小不通过
     * 101101 面部存在遮挡
     */
    public static final HashMap<Integer, String> QUALITY_JUDGE_MAP= new HashMap<Integer, String>(){
        {
            put(101082,"图片大小超过10MB");
            put(101066,"图片格式或名称错误");
            put(101050,"模糊度不通过");
            put(101052,"垂直角度不通过");
            put(101053,"水平角度不通过");
            put(101054,"旋转角度不通过");
            put(101055,"亮度不通过");
            put(101056,"标准差亮度不通过");
            put(101051,"人脸大小不通过");
            put(101101,"面部存在遮挡");
        }
    };

    public static final Map<Integer, Integer> personTypes = new HashMap<Integer, Integer>() {
        {
            put(0, 1);
            put(1,1);
            put(4, 3);

        }
    };

    /**
     * 上传人脸图片
     */
    public static final String uploadImage = "/v1/api/person/config/uploadImage";

    /**
     * 批量添加人员
     */
    public static final String batchAddPerson="/v1/api/person/batchAdd";


    /**
     * 批量删除人员
     */
    public static final String batchDeletePerson="/v1/api/person/batchDelete";

    /**
     * 修改人员
     */
    public static final String updatePerson="/v1/api/person/update";



}
